package com.smh.springboottest.dao.po;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author shiminghui
 * @date 2024/9/24 13:02
 * @description: TODO
 */
@ConfigurationProperties(prefix = "email")
@Component
@ToString
@Data
public class ControllerPo {
    //    @Value("${email.user}")
    private String user;
    private String code;
    private String host;
    private String auth;
    //    @Value("${hobbies}") 集合等复杂类型应当用@ConfigurationProperties注解获取
    private List<String> hobbies;
}
